<include file="public@header"/>
</head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="javascript:;">列表</a></li>
        <li><a href="{:url('add')}">添加</a></li>
    </ul>
    <form class="well form-inline margin-top-20" method="post" action="">&nbsp;
        添加时间:
        <input type="text" class="form-control js-bootstrap-datetime" name="start_time" value="{$start_time}" style="width:180px;" autocomplete="off">-
        <input type="text" class="form-control js-bootstrap-datetime" name="end_time" value="{$end_time}" style="width:180px;" autocomplete="off">
        游玩日期:
        <input type="text" class="form-control js-bootstrap-date" name="play_date" value="{$play_date}" style="width:120px;" autocomplete="off">
        状态:
        <select class="form-control" name="status" id="status" aria-invalid="false">
            <option value="">--请选择--</option>
            <foreach name="infos['projectStatusArr']" item="val" key="k">
                <option value="{$k}"  <eq name="$status" value="$k">selected</eq> >{$val}</option>
            </foreach>
        </select>
        关键词：<select class="form-control" name="searchType" id="searchType" aria-invalid="false">
            <option value="" <empty name="searchType">selected="selected"</empty> >--请选择--</option>
            <option value="d.spot_title" <eq name="$searchType" value="d.spot_title">selected="selected"</eq> >景区</option>
            <option value="b.user_login" <eq name="$searchType" value="b.user_login">selected="selected"</eq> >账号</option>
            <option value="a.project_title" <eq name="$searchType" value="a.project_title">selected="selected"</eq> >名称</option>
        </select>
        <input class="form-control" type="text" name="keyword" style="width:200px;" value="{$keyword}" placeholder="请输入关键词">
        <input type="submit" class="btn btn-primary" value="搜索" style="margin-left: 10px;">
        <a class="btn btn-danger" href="{:url('index')}">清空</a>
        &nbsp;<span style="color:red;">待审核人数：{$infos.waitCount|default='0'}人</span>
    </form>
    <form method="post" class="js-ajax-form" action="{:url('sort')}">
        <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="">ID</th>
                <th width="">景区</th>
                <th width="">账号</th>
                <th width="">旅行社</th>
                <th width="">名称</th>
                <th width="">游玩日期</th>
                <th width="">需求总人数</th>
                <th width="">已加入人数</th>
                <th width="">待处理人数</th>
                <th width="">申请时间</th>
                <th width="">更新时间</th>
                <th width="">状态</th>
                <th width="">操作</th>
            </tr>
            </thead>
            <volist name="infos['list']" id="vo">
                <tr>
                    <td>{$vo.id}</td>
                    <td>{$vo.spot_title|mb_substr=###,0,20,'utf-8'|default='---'}</td>
                    <td>{$vo.user_login|mb_substr=###,0,20,'utf-8'|default='---'}</td>
                    <td>{$vo.company_title|mb_substr=###,0,20,'utf-8'|default='---'}</td>
                    <td>{$vo.project_title|mb_substr=###,0,20,'utf-8'|default='---'}</td>
                    <td>{$vo.project_date|default='---'}</td>
                    <td>{$vo.project_total_num|mb_substr=###,0,20,'utf-8'|default='0'}</td>
                    <td>{$vo.project_join_num|mb_substr=###,0,20,'utf-8'|default='0'}</td>
                    <td>{$vo.project_wait_num|mb_substr=###,0,20,'utf-8'|default='0'}</td>
                    <td>
                        <gt name="vo.create_time" value="0">{$vo['create_time']|date='Y-m-d H:i:s',###}</gt>
                    </td>
                    <td>
                        <gt name="vo.update_time" value="0">{$vo['update_time']|date='Y-m-d H:i:s',###}</gt>
                    </td>
                    <td>
                        {$infos['projectStatusArr'][$vo['status']]}
                    </td>
                    <td>
                        <a href="{:url('edit',array('uuid'=>$vo['uuid']))}">编辑</a>&nbsp;|&nbsp;
                        <a href="{:url('apiProject/indexa',array('uuid'=>$vo['uuid']))}" class="tips-f">游客</a>
                    </td>
                </tr>
            </volist>
        </table>
        <ul class="pagination">{$infos['list']->render ()|default=''}</ul>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
<link href="__STATIC__/css/index.css" rel="stylesheet" type="text/css">
</body>
</html>
